package com.system.service.mail;


import com.baomidou.mybatisplus.extension.service.IService;
import com.system.entity.mail.MailRecord;
import com.system.response.Result;
import com.system.response.mail.MailRecordDtoResponse;

public interface MailRecordService extends IService<MailRecord> {

    /**
     * 添加邮件记录
     * @param mailRecord
     */
    void saveMailRecord(MailRecord mailRecord);

    /**
     * 条件查询邮件列表
     * @param mailRecordDto
     * @return
     */
    Result mailList(MailRecordDtoResponse mailRecordDto);

    /**
     * 批量删除邮件记录
     * @param ids
     * @return
     */
    Result deleteMailRecord(Integer [] ids);

    /**
     * 清空邮件记录
     * @return
     */
    Result clearMailRecord();

}
